﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Growatt.CreateCCode
{
    public class SafetyParameterModel
    {

        public string Address { get; set; }
        public string NewAddress { get; set; }

        public string ParameterName { get; set; }
        public string ChineseName { get; set; }
        public string Length { get; set; }
        public string Up { get; set; }
        public string Load { get; set; }
        public CDataType DataTypeSamplEnum { get; set; }
        public string Uint { get; set; }
        public string DataType { get; set; }
        public List<string> strings { get; set; }

        public int Index = 0;

        public string strdataFilnal = string.Empty;



    }

    public enum CDataType
    {
        DATDLEN_NULL = 0,
        DATALEN_U8 = 1,
        DATALEN_U16 = 2,
        DATALEN_U32 = 4,
        DATALEN_U64 = 8,
        DATALEN_8S = 11,
        DATALEN_16S = 21,
        DATALEN_32S = 41,
        DATALEN_64S = 81,
    }
    public enum DataTypeSample : byte
    {
        int8 = 0x1,
        Uint8 = 0x1,
        Uint16 = 02,
        Uint32 = 0x4,
        int16 = 0x2,
        int32 = 0x4,
        FP64 = 0x8,

    }

}
